<?php
header('Pragma: public');
$exp = 60*60*24*365;
header('Cache-Control: max-age=' . $exp);
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time()+$exp) . '');

require 'includes/functions.php';
require 'includes/autoloader.php';

if(!isset($_GET['f']) || strstr($_GET['f'], '.') != '.css' || !file_exists($_GET['f']))
	exit(0);


switch(request_var("o", false))
{
	default:
		header('Content-type: text/css;');	
		$style = new style(true, true);
		echo $style->compressCSS("./" . request_var('f'));
	break;
	
	case "html":
		header('Content-type: text/html; charset=utf-8');
		$style = new style(false, false);
		highlight_string($style->compressCSS("./" . request_var('f')));
	break;
}

?>